package com.qiall.boot.fileservice.impl;

import com.qiall.ali.Oss;
import com.qiall.boot.fileservice.data.properties.OssProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OssService {


    @Autowired
    OssProperties ossProperties;

    public Oss getOss() {
        Oss oss = new Oss();
        oss.init(ossProperties.getAccessKeyId(), ossProperties.getAccessKeySecret());
        return oss;
    }
}
